import request from "@/util/request";
export const getcategoryListApi = () => {
    return request.get<any, CateNs.IcategoryListData>('/category/indexaction')
}
export const getcategoodsListListApi = (categoryId: string) => {
    return request.get<any, CateNs.IcategoodsListData>('/goods/goodsList', {
        params: { categoryId }
    })
}
export const getcategoodsApi = (id: string) => {
    return request.get<any, CateNs.ICategoodsDataList>('/category/currentaction', {
        params: { id }
    })
}
export const getcateNavApi = (id: string) => {
    return request.get<any, CateNs.ICateNavDataList>('/category/categoryNav', {
        params: { id }
    })
}

